package com.huantai.common.dto;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 编码-名称对对象类
 * 
 * @author Ma Chao
 * @version 2019年5月22日 下午5:26:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "编码-名称对对象类")
public class IdNamePair implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 编码 */
    @NotEmpty
    @ApiModelProperty(value = "编码", dataType = "String", required = true)
    private String id;

    /** 名称 */
    @NotEmpty
    @ApiModelProperty(value = "名称", dataType = "String", required = true)
    private String name;
}
